package com.fan89.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@ApiModel(value = "博客详情dto")
@Data
public class BlogDetailDto implements Serializable {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("博客标题")
    private String title;

    @ApiModelProperty("博客描述")
    private String description;

    @ApiModelProperty("博客内容")
    private String content;

    @ApiModelProperty("转载或者原创标记")
    private String flag;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("博客状态")
    private Integer status;

    @ApiModelProperty("用户名")
    private  String username;

    @ApiModelProperty("博客分类")
    private String type;

    @ApiModelProperty("博客标签")
    private List<String> tags;

    @ApiModelProperty("浏览次数")
    private Integer views;

    @ApiModelProperty("是否推荐")
    private String recommend;

}
